package com.lee.lifecycletest;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

/**
 * @ProjectName: LifeCycleTest
 * @Package: com.lee.lifecycletest
 * @ClassName: Student
 * @Description: java类作用描述
 * @Author: 李占伟
 * @CreateDate: 22/4/7 下午11:27
 * @UpdateUser: 更新者
 * @UpdateDate: 22/4/7 下午11:27
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */

class Student extends BaseObservable {



    private String name;

    private String pwd;
    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }
    @Bindable
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
        notifyPropertyChanged(BR.pwd);
    }

    public Student(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }
}
